package com.liefox.service;

import com.liefox.mapper.PatientMapper;
import com.liefox.pojo.Patient;
import com.liefox.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class PatientServiceImpl implements PatientService{

    @Autowired
    private PatientMapper patientMapper;

    @Override
    public int delPatientInfoByUUID(String UUID) {
        return patientMapper.delPatientInfoByUUID(UUID);
    }

    @Override
    public List<Patient> getPatientInfo() {
        return patientMapper.getPatientInfo();
    }

    @Override
    public int addPatientInfo(Patient patient) {
        return patientMapper.addPatientInfo(patient);
    }

    @Override
    public int upPatientInfoByUUID(Patient patient) {
        return patientMapper.upPatientInfoByUUID(patient);
    }

    @Override
    public Patient getPatientInfoByUUID(String UUID) {
        return patientMapper.getPatientInfoByUUID(UUID);
    }
}
